package com.oceanstar.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

public interface AiSuggestionsMapper {
    @Insert("INSERT INTO health_suggestions (elderly_id, suggestion, create_time) " +
            "VALUES (#{userId}, #{aiResponse}, #{createTime})")
    int insertHealthSuggestions(@Param("userId") Integer userId,
                                @Param("aiResponse") String aiResponse,
                                @Param("createTime") LocalDateTime createTime);
}
